/*
 * Bulkquote.cpp
 *
 *  Created on: 2020年12月8日
 *      Author: san
 */

#include "Bulkquote.h"

double Bulk_quote::net_price(std::size_t n) const
{
	if (n < quantity)
		return n * price;
	else
		return quantity * price + (n - quantity) * price * discount;
}


Bulk_quote::~Bulk_quote() =default;
